//2~50 位数字、汉字、字母
const ACCOUNT = /[0-9a-zA-Z\u4e00-\u9fa5]{2,50}/;
//邮箱
const EMAIL = /^[a-z\d]+(\.[a-z\d]+)*@([\da-z](-[\da-z])?)+(\.{1,2}[a-z]+)+$/;
//6~18位 ，必须同时包含字母及数字，不限制其他字符类型
const PASSWORD = /^(?=.*[0-9])(?=.*[a-zA-Z])(.{6,18})$/
//2~50位有效字符
const CHAR = /.{2,50}/;
//身份证
const IDCARD = /^[1-9]\d{5}(18|19|20|(3\d))\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/;
//2~10位中文名称
const Chinese = /^[\u4e00-\u9fa5]{2,10}$/
//手机号
const MOBILE = /^[1]([3-9])[0-9]{9}$/
//固定电话
const FIXEDPHONE = /^\d{3}-\d{7,8}|\d{4}-\d{7,8}$/;
//必须同时包含大写字母及数字
const SOCIALCODE = /^(?=.*\d+)(?=.*[A-Z]+)[\w]{15,18}$/

export {
  ACCOUNT,
  EMAIL,
  PASSWORD,
  CHAR,
  IDCARD,
  Chinese,
  MOBILE,
  FIXEDPHONE,
  SOCIALCODE,
}